<template>
  <div class="home">
    <router-view class="page"></router-view>
    <van-tabbar route active-color="#ee0a24" inactive-color="#000">
      <van-tabbar-item to="/index" replace icon="wap-home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/classPage" replace icon="apps-o">分类</van-tabbar-item>
      <van-tabbar-item to="/cart" replace icon="cart-o">购物车</van-tabbar-item>
      <van-tabbar-item to="/user" replace icon="friends-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
// @ is an alias to /src
import { ref } from 'vue';
export default {
  name: "HomeView",
  components: {},
  setup() {
    
  }
};
</script>
<style lang="scss" scoped>
  .home{
    height: 100%;
  }
  .page{
    height: calc(100% - 50px);
    background: #e9e9e9;
  }
</style>

